/*
 *
 * Base implementation of freezable interface
 *
 * TODO: implement for Set, Queue, SortedSet, and ConcurntMap
 * 
 */

package org.yagnus.langutils.freezable;

/**
 * 
 * @author hc.busy
 */
public class FreezableBase {
    boolean frozen = false;

    public boolean freeze() {
        frozen = true;
        return true;
    }

    public boolean unfreeze() {
        frozen = false;
        return true;
    }

    public boolean isFrozen() {
        return frozen;
    }
}
